package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author hej
 * @since 2022-11-03
 */
@TableName("t_role")
@ApiModel(value = "Role对象", description = "用户表")
@Data
public class Role extends Model<Role> implements Serializable{

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("userid")
    private String name;

    @ApiModelProperty("角色名称")
    private Long userId;

    @ApiModelProperty("创建时间")
    private LocalDateTime insertTime;

    @ApiModelProperty("id")
    private Long ordinal;

}
